﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Drawing;

namespace Juntae.Util
{
    public class ResizeImage
    {
        public static void Resize(string OriginalFile, int NewWidth, int MaxHeight) 
        {
            System.Drawing.Image FullsizeImage = System.Drawing.Image.FromFile(OriginalFile);
            System.Drawing.Image NewImage = FullsizeImage.GetThumbnailImage(117, 117, null, IntPtr.Zero);
            FullsizeImage.Dispose();
            NewImage.Save(OriginalFile);
        }
    }
}